package 装饰模式.impl;

import 装饰模式.Decorate;
import 装饰模式.Person;

public class Dance extends Decorate {
    public Dance(Person person) {
        super(person);
    }
    @Override
    public void work() {
        System.out.println("爱跳舞的");
        this.person.work();
    }
}
